widget: Avoid a crash in event handling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 25 Dec 2019 01:06:57 +0000 (20:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 25 Dec 2019 14:47:22 +0000 (09:47 -0500)
commita02e25ffffd3d66bb7bc19d649f41efb130b7ae6
tree19439850874aeee04ad3be4bee5c4c403f901951
parent280bdb0567ce51565fc16c587a8ee361ce54a36e
widget: Avoid a crash in event handling

I was seeing crashes in gtk_widget_run_controllers.
We were accessing the controller after calling out
to application code that might remove it. Better
be safe and do the access before.
gtk/gtkwidget.c